package com.aloda.mapper;

import com.aloda.entity.UserFollow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 针对表【user_follow(用户关注表)】的数据库操作Mapper
 * @author aloda
 * @date 2025/03/27
 */
public interface FollowMapper extends BaseMapper<UserFollow> {

    /**
     * 查询是否为关注者
     * @param id 关注者id
     * @param userId 粉丝id
     * @return count
     */
    Integer selectIsFollowee(Long id, Long userId);
}
